/*
 * ModeloLista.java
 *
 * Created on 6 de septiembre de 2007, 05:33 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ig.formato.util;

/**
 *
 * @author jsanchez
 */
public class ModeloLista extends javax.swing.AbstractListModel{
    
    public ModeloLista(Object[] obj){
        this.obj=obj;
    }
    
    Object[] obj=null;
    public int getSize() {
        return obj==null ? 0 : obj.length;
    }
    
    public Object getElementAt(int i) {
        return obj[i];
    }

    public Object[] getData() {
        return obj;
    }
    
}